#pragma once
#include "cobject.h"
#include "global.h"
class CCText :
	public CCObject
{
private:
	SDL_Color *pTextColor;
	std::string strText;
	TTF_Font * pFont;
	static int textNum;
	int tellTextNum() const;
	void reduceTextNum();
	void increaseTextNum();
public:
	~CCText(void);
	CCText(std::string text);
	void setTextRGB(Uint8 r, Uint8 g,  Uint8 b);
	void setTextFont(std::string fontName, int fontSize = 80);
	SDL_Surface * CCText::drawable();
};

